import request from "@/utils/request";

export default {

  getSkillsByPage(current, limit, name) {
    return request({
      url: `/admin/skill/page/${current}/${limit}`,
      method: 'GET',
      param: name
    })
  },

  saveOrUpdateSkill(skill) {
    return request({
      url: `/admin/skill/save`,
      method: 'POST',
      data: skill,
    })
  },
  deleteSkillById(skillId) {
    return request({
      url: `/admin/skill/del/${skillId}`,
      method: `DELETE`
    })
  },
  getSkillInfoById(id) {
    return request({
      url: `/admin/skill/info/${id}`,
      method: `GET`,
    })
  }
}